<?php
/**
 * Created by PhpStorm.
 * User: Artem
 * Date: 04.12.2014
 * Time: 22:18
 */

namespace Orm;

use Entity\Category;

class CategoryRepo extends AbstractRepo
{

    protected function getTableName()
    {
        return 'category';
    }

    protected function getMapping()
    {
        return array('id','title','summary','parent_id');

    }

    protected function getInstance()
    {
        return new Category();
    }

}
